home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00276_Script_TRAVELING_ALLER
< prev
next >
Wrap
Text File
|
2004-12-05
|
2KB
|
51 lines
global gpiste_Fond, gdemiW_Fond, gL_Home, gdeltaTravelingMax, gNb_Traveltracks,gSens ,gdemiH_Fond
property p_Incr
---------------------------
on getPropertyDescriptionList me
return [\
#p_Incr:[#comment: "incrΘment aller (en pixels):",#format: #integer, #default: 3]\
]
end getPropertyDescriptionList
---------------------
on exitFrame me
case(gSens) of
1:
if sprite(gpiste_Fond).locH > 640 - gdemiW_Fond then
repeat with i =gpiste_Fond to gpiste_Fond + gNb_Traveltracks
sprite(i).locH = sprite(i).locH - p_Incr
end repeat
go the frame
else
sprite(gpiste_Fond).locH = 640 - gdemiW_Fond
repeat with i = 1 to gNb_Traveltracks
sprite(gpiste_Fond + i).locH = gL_Home[i][1]- gdeltaTravelingMax
end repeat
updateStage
end if
2:
if sprite(gpiste_Fond).locV < gdemiH_Fond then
repeat with i =gpiste_Fond to gpiste_Fond + gNb_Traveltracks
sprite(i).locV = sprite(i).locV + p_Incr
end repeat
go the frame
else
sprite(gpiste_Fond).locV = gdemiH_Fond
repeat with i = 1 to gNb_Traveltracks
sprite(gpiste_Fond + i).locV = gL_Home[i][2]+ gdeltaTravelingMax
end repeat
updateStage
end if
end case
end
---------------------------
on mouseUp
case(gSens) of
1:
sprite(gpiste_Fond).locH = 640 - gdemiW_Fond
2:
sprite(gpiste_Fond).locV = gdemiH_Fond
end case
end
--------------------------